package sv.com.seguros.exception;

import org.apache.commons.lang.StringUtils;

import sv.com.seguros.web.util.WebUtilidades;

public class WebException extends Exception {

	private static final long serialVersionUID = -7051111821582521895L;

	public WebException() {
		super();
	}

	public WebException(String message, Throwable cause) {
		super(message, cause);
	}

	public WebException(String message) {
		super(message);
	}

	public WebException(Throwable cause) {
		super(cause);
	}
	
	public String getExceptionMessage(){
		return StringUtils.isBlank(this.getMessage()) ? WebUtilidades.DEFAULT_ERROR_MESSAGE : this.getMessage();
	}
	
}
